import { createSlice } from "@reduxjs/toolkit";
import dayjs from "dayjs";

export const counterSlice = createSlice({
  name: "counter",
  initialState: {
    start:'杭州',
    end:'厦门',
    date:dayjs().format('YYYY-MM-DD'),
    isSpeed:false
  },
  reducers: {
   
  },
});
// 每个 case reducer 函数会生成对应的 Action creators
export const { increment} = counterSlice.actions;

export default counterSlice.reducer;